﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.BackgroundJobs;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Timing;

namespace XDQ.VAT.Web.BackgroundJobs
{
    public class AlwaysHelloJob : AsyncBackgroundJob<AlwaysHelloJobArg>, ITransientDependency
    {
        //public ILogger<AlwaysHelloJob> Logger { get; set; }
        public IClock Clock { get; set; }
        public override Task ExecuteAsync(AlwaysHelloJobArg args)
        {
            string now = DateTime.Now.ToString("HH:mm:ss.fff");
            Logger.LogInformation($"Hello,it's {now}!");
            return Task.FromResult(0);
        }
    }
}
